package com.timoon.manager.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.timoon.manager.panel.product.ProductCommentsService;
import com.timoon.sample.dao.ProductCommentDAO;
import com.timoon.sample.dao.model.ProductComment;
import com.timoon.sample.dao.model.ProductCommentExample;

/**
 *<p>功能:</p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013</p>
 *<p>Company:sky</p>
 *@author 付乐天
 *@version 1.0 */
@Service(value="manager.productComment")
public class ProductCommentServiceImpl implements ProductCommentsService {

	@Resource
	private ProductCommentDAO productCommentDAOImpl;
	
	@Override
	public List<ProductComment> getAllProductComments() {
		// TODO Auto-generated method stub
		return this.productCommentDAOImpl.selectByExample(new ProductCommentExample());
	}

	@Override
	public void updateProductComment(ProductComment productComment) {
		// TODO Auto-generated method stub
		this.productCommentDAOImpl.updateByPrimaryKey(productComment);
	}

}
